package com.example.ytyproject.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.ytyproject.entity.Role;
import com.example.ytyproject.entity.vo.PermissionAllocationVo;
import com.example.ytyproject.entity.vo.R;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yg
 * @since 2023-10-27
 */
public interface RoleService extends IService<Role> {

    R listByPage(Role param);

    void addData(Role param);

    void updateData(Role param);

    Role findByCode(String code);

    R queryCurrentUserRoles(String userId);

    void permissionAllocation(PermissionAllocationVo allocationVo);
}
